package de.bk.timecalc.core;

/**
 * Transfer object for a time calc challenge.
 * 
 * @author Bastian Krol
 * @version $Revision:$ $Date:$ $Author:$
 */
public class ChallengeDTO
{
  private TimeDTO time;
  private Difference difference;

  /**
   * Creates a ChallengeDTO.
   * 
   * @param time
   *          the start time for the calculation
   * @param difference
   *          the difference to calculate
   */
  public ChallengeDTO(TimeDTO time, Difference difference)
  {
    super();
    this.time = time;
    this.difference = difference;
  }

  public final TimeDTO getTime()
  {
    return this.time;
  }

  public final Difference getDifference()
  {
    return this.difference;
  }

  public final String getDifferenceAsString()
  {
    return this.difference.getDisplayText();
  }
}
